<!--{if $arrJiajucompany['jiajucompany_isfvip']==1}-->
<!--<include file="Jiaju_Extend::getTemplate($arrJiajucompany,'vipheader',true)" />-->
<!--{d*else}-->
<!--<include file="Core_Extend::template('header')" />-->
<!--{/if}-->

<!--{~$sCalendarLang=Core_Extend::calendar()}-->
<!--{:Core_Extend::validate()}-->

<!--{script}-->
$(document).ready(function(){
	$('.comment_level li,.comment_level1 li,.comment_level2 li,.comment_level3 li,.comment_level4 li,.comment_level5 li').each(function(){
		$(this).bind('mouseover', function() {
			$(this).attr('class', 'comment_redlevel');
			$(this).prevAll().attr('class', 'comment_redlevel');
			$(this).nextAll().attr('class', 'comment_graylevel');
		});
	});
});

function addComment(){
	$("#submit_button").attr("disabled","disabled");
	$("#submit_button").val('提交点评...');
	
	for(var nI=0;nI<=5;nI++){
		if(nI==0){
			$('#jiajucompanycomment_level').val($('.comment_level .comment_redlevel').length);
		}else{
			$('#jiajucompanycomment_level'+nI).val($('.comment_level'+nI+' .comment_redlevel').length);
		}
	}

	Q.AjaxSubmit('commentAdd',Q.U('jiaju://shop/addcomment'),'',function(data,status){ 
		$("#submit_button").attr("disabled",false);
		$("#submit_button").val("提交点评");
		if(status==1){
			setTimeout(function(){
				window.location.replace(_SELF_);
			},1000);
		}
	});
}

checkForm(addComment);
<!--{/script}-->

	<!--{if !$arrJiajucompany['jiajucompany_isfvip']}-->
	<div class="container_12">
		<ul class="breadcrumb">
			<li><a href="<!--{:__APP__}-->" title="<!--<lang package='__COMMON_LANG__@Common'>-->主页<!--</lang>-->"><!--<lang package='__COMMON_LANG__@Common'>-->主页<!--</lang>--></a>&nbsp;<span class="divider">/</span>&nbsp;</li>
			<li><a href="<!--{:Q::U('[D]~@jiaju://public/index')}-->" title="<!--<lang package='Template'>-->家居装饰<!--</lang>-->"><!--<lang package='Template'>-->家居装饰<!--</lang>--></a>&nbsp;<span class="divider">/</span>&nbsp;</li>
			<li><a href="<!--{:Q::U('[D]~@jiaju://company/index')}-->"><!--{$GLOBALS['_citysite_']['site_name']}--><!--<lang package='Template'>-->装修公司排名<!--</lang>--></a>&nbsp;<span class="divider">/</span>&nbsp;</li>
			<li><a href="<!--{:Jiaju_Extend::getShopUrl($arrJiajucompany)}-->"><!--{$arrJiajucompany['jiajucompany_fullname']}--></a>&nbsp;<span class="divider">/</span>&nbsp;</li>
			<li>添加点评</li>
		</ul>
	</div>
	<!--{/if}-->

	<div class="container_12 container_box">
		<!--{if $arrJiajucompany['jiajucompany_isfvip']==1}-->
		<!--<include file="Jiaju_Extend::getTemplate($arrJiajucompany,'menu',true)" />-->
		<!--{/if}-->

		<div class="grid_12">
			<div class="common_contentbox common_contentboxwhite clearfix">
				<div class="common_contentbody">
					<span class="right"><a href="<!--{:Jiaju_Extend::getCommentUrl($arrJiajucompany)}-->" title="用户点评列表">返回用户点评列表</a></span>
					<h1 class="title">发布点评</h1>
					<form class="form-horizontal validate" method='post' id="commentAdd" name="commentAdd">
						<fieldset>
							<div class="control-group">
								<label class="control-label" for="jiajucompanycomment_name">总体打分<em style="color:red">*</em></label>
								<div class="controls">
									<ul class="comment_level">
										<li class="comment_redlevel need_pngfix"></li>
										<li class="comment_redlevel need_pngfix"></li>
										<li class="comment_redlevel need_pngfix"></li>
										<li class="comment_graylevel need_pngfix"></li>
										<li class="comment_graylevel need_pngfix"></li>
									</ul>
									<p class="input_tips">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;请点击星星，为商家打分。</p>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" for="jiajucompanycomment_name">服务<em style="color:red">*</em></label>
								<div class="controls">
									<ul class="comment_level1">
										<li class="comment_redlevel need_pngfix"></li>
										<li class="comment_redlevel need_pngfix"></li>
										<li class="comment_redlevel need_pngfix"></li>
										<li class="comment_graylevel need_pngfix"></li>
										<li class="comment_graylevel need_pngfix"></li>
									</ul>
									<p class="input_tips">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;请点击星星，为商家打分。</p>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" for="jiajucompanycomment_name">价格<em style="color:red">*</em></label>
								<div class="controls">
									<ul class="comment_level2">
										<li class="comment_redlevel need_pngfix"></li>
										<li class="comment_redlevel need_pngfix"></li>
										<li class="comment_redlevel need_pngfix"></li>
										<li class="comment_graylevel need_pngfix"></li>
										<li class="comment_graylevel need_pngfix"></li>
									</ul>
									<p class="input_tips">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;请点击星星，为商家打分。</p>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" for="jiajucompanycomment_name">设计<em style="color:red">*</em></label>
								<div class="controls">
									<ul class="comment_level3">
										<li class="comment_redlevel need_pngfix"></li>
										<li class="comment_redlevel need_pngfix"></li>
										<li class="comment_redlevel need_pngfix"></li>
										<li class="comment_graylevel need_pngfix"></li>
										<li class="comment_graylevel need_pngfix"></li>
									</ul>
									<p class="input_tips">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;请点击星星，为商家打分。</p>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" for="jiajucompanycomment_name">施工<em style="color:red">*</em></label>
								<div class="controls">
									<ul class="comment_level4">
										<li class="comment_redlevel need_pngfix"></li>
										<li class="comment_redlevel need_pngfix"></li>
										<li class="comment_redlevel need_pngfix"></li>
										<li class="comment_graylevel need_pngfix"></li>
										<li class="comment_graylevel need_pngfix"></li>
									</ul>
									<p class="input_tips">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;请点击星星，为商家打分。</p>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" for="jiajucompanycomment_name">售后<em style="color:red">*</em></label>
								<div class="controls">
									<ul class="comment_level5">
										<li class="comment_redlevel need_pngfix"></li>
										<li class="comment_redlevel need_pngfix"></li>
										<li class="comment_redlevel need_pngfix"></li>
										<li class="comment_graylevel need_pngfix"></li>
										<li class="comment_graylevel need_pngfix"></li>
									</ul>
									<p class="input_tips">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;请点击星星，为商家打分。</p>
								</div>
							</div>
							<div class="control-group">
								<label class="control-label" for="jiajucompanycomment_content">发表评论<em style="color:red">*</em></label>
								<div class="controls">
									<textarea class="{required:true,maxlength:250}" id="jiajucompanycomment_content" name="jiajucompanycomment_content" type="text" value="" style="width:500px;height:80px;"></textarea>
									<p class="input_errortips"></p>
								</div>
							</div>
							<div class="form-actions">
								<input type="hidden" name="ajax" value="1">
								<input type="hidden" id="jiajucompanycomment_level" name="jiajucompanycomment_level" value="1">
								<input type="hidden" id="jiajucompanycomment_level1" name="jiajucompanycomment_level1" value="1">
								<input type="hidden" id="jiajucompanycomment_level2" name="jiajucompanycomment_level2" value="1">
								<input type="hidden" id="jiajucompanycomment_level3" name="jiajucompanycomment_level3" value="1">
								<input type="hidden" id="jiajucompanycomment_level4" name="jiajucompanycomment_level4" value="1">
								<input type="hidden" id="jiajucompanycomment_level5" name="jiajucompanycomment_level5" value="1">
								<input type="submit" id="submit_button" class="btn" value="提交点评" <!--{if $GLOBALS['___login___']===false}-->disabled<!--{/if}-->/>
							</div>
						</fieldset>
					</form>

					<div class="tips tips-highlight"><!--{if $GLOBALS['___login___']!==false}--><b style="color:#EF0D4D;">只有登录后才能够发布点评，并且每一个帐号每月只能最多点评一次</b>，<!--{/if}-->点评发布后，等待系统审核通过后就会显示在点评列表中。</div>
				</div>
			</div>
		</div>
		<div class="clearfix"></div>
	
	</div>

<!--<include file="Core_Extend::template('footer')" />-->